package io.renren.modules.userdata.service.impl;

import io.renren.datasources.DataSourceNames;
import io.renren.datasources.annotation.DataSource;
import io.renren.modules.userdata.service.TLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author owen
 * @date 2018/11/2 17:17
 */
@Service("multDataService")
public class MultDataService {

    @Autowired
    private TLabelService tLabelService;

    @DataSource(name = DataSourceNames.SECOND)
    public List<Map<String,Object>> execSql(String sql){
        return tLabelService.listTable(sql);
    }

}
